package com.zhengxiang.onlinexamination.base;

import com.alibaba.fastjson.serializer.JSONSerializer;
import com.alibaba.fastjson.serializer.ObjectSerializer;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import org.apache.http.util.TextUtils;

import java.io.IOException;
import java.lang.reflect.Type;

public class IntTypeAdapter implements ObjectSerializer {


    @Override
    public void write(JSONSerializer jsonSerializer, Object o, Object o1, Type type, int i) throws IOException {
        System.out.println(o);
        System.out.println(o1);
        System.out.println(type.getTypeName());
        System.out.println(i);
    }
}
